package com.woniuxy.system.controller;


import com.woniuxy.resultCode.Result;
import com.woniuxy.system.entity.DataFrom;
import com.woniuxy.system.service.DataFromService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@RestController
@RequestMapping("/system/dataFrom")
@RequiresAuthentication
public class DataFromController {
@Autowired
    DataFromService dataFromService;
@GetMapping("/list")
    Result list(){
    List<DataFrom> list = dataFromService.list();
    return Result.ok().data("msg",list);
}

}

